Integrand size = 20, antiderivative size = 75 \[ \int \frac {(A+B x) \sqrt {a+b x^2}}{x^2} \, dx=-\frac {(A-B x) \sqrt {a+b x^2}}{x}+A \sqrt {b} \text {arctanh}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )-\sqrt {a} B \text {arctanh}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right ) \]
[Out]
Time = 0.04 (sec) , antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.350, Rules used = {827, 858, 223, 212, 272, 65, 214} \[ \int \frac {(A+B x) \sqrt {a+b x^2}}{x^2} \, dx=A \sqrt {b} \text {arctanh}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )-\frac {\sqrt {a+b x^2} (A-B x)}{x}-\sqrt {a} B \text {arctanh}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right ) \]
[In]
[Out]
Rule 65
Rule 212
Rule 214
Rule 223
Rule 272
Rule 827
Rule 858
Rubi steps \begin{align*} \text {integral}& = -\frac {(A-B x) \sqrt {a+b x^2}}{x}-\frac {1}{2} \int \frac {-2 a B-2 A b x}{x \sqrt {a+b x^2}} \, dx \\ & = -\frac {(A-B x) \sqrt {a+b x^2}}{x}+(A b) \int \frac {1}{\sqrt {a+b x^2}} \, dx+(a B) \int \frac {1}{x \sqrt {a+b x^2}} \, dx \\ & = -\frac {(A-B x) \sqrt {a+b x^2}}{x}+(A b) \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x}{\sqrt {a+b x^2}}\right )+\frac {1}{2} (a B) \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,x^2\right ) \\ & = -\frac {(A-B x) \sqrt {a+b x^2}}{x}+A \sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )+\frac {(a B) \text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b x^2}\right )}{b} \\ & = -\frac {(A-B x) \sqrt {a+b x^2}}{x}+A \sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )-\sqrt {a} B \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right ) \\ \end{align*}
Time = 0.15 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.17 \[ \int \frac {(A+B x) \sqrt {a+b x^2}}{x^2} \, dx=\frac {(-A+B x) \sqrt {a+b x^2}}{x}+2 \sqrt {a} B \text {arctanh}\left (\frac {\sqrt {b} x-\sqrt {a+b x^2}}{\sqrt {a}}\right )-A \sqrt {b} \log \left (-\sqrt {b} x+\sqrt {a+b x^2}\right ) \]
[In]
[Out]
Time = 3.40 (sec) , antiderivative size = 78, normalized size of antiderivative = 1.04
method | result | size |
risch | \(-\frac {A \sqrt {b \,x^{2}+a}}{x}+A \sqrt {b}\, \ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )+\sqrt {b \,x^{2}+a}\, B -B \sqrt {a}\, \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right )\) | \(78\) |
default | \(B \left (\sqrt {b \,x^{2}+a}-\sqrt {a}\, \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right )\right )+A \left (-\frac {\left (b \,x^{2}+a \right )^{\frac {3}{2}}}{a x}+\frac {2 b \left (\frac {x \sqrt {b \,x^{2}+a}}{2}+\frac {a \ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )}{2 \sqrt {b}}\right )}{a}\right )\) | \(103\) |
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 333, normalized size of antiderivative = 4.44 \[ \int \frac {(A+B x) \sqrt {a+b x^2}}{x^2} \, dx=\left [\frac {A \sqrt {b} x \log \left (-2 \, b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {b} x - a\right ) + B \sqrt {a} x \log \left (-\frac {b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {a} + 2 \, a}{x^{2}}\right ) + 2 \, \sqrt {b x^{2} + a} {\left (B x - A\right )}}{2 \, x}, -\frac {2 \, A \sqrt {-b} x \arctan \left (\frac {\sqrt {-b} x}{\sqrt {b x^{2} + a}}\right ) - B \sqrt {a} x \log \left (-\frac {b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {a} + 2 \, a}{x^{2}}\right ) - 2 \, \sqrt {b x^{2} + a} {\left (B x - A\right )}}{2 \, x}, \frac {2 \, B \sqrt {-a} x \arctan \left (\frac {\sqrt {-a}}{\sqrt {b x^{2} + a}}\right ) + A \sqrt {b} x \log \left (-2 \, b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {b} x - a\right ) + 2 \, \sqrt {b x^{2} + a} {\left (B x - A\right )}}{2 \, x}, -\frac {A \sqrt {-b} x \arctan \left (\frac {\sqrt {-b} x}{\sqrt {b x^{2} + a}}\right ) - B \sqrt {-a} x \arctan \left (\frac {\sqrt {-a}}{\sqrt {b x^{2} + a}}\right ) - \sqrt {b x^{2} + a} {\left (B x - A\right )}}{x}\right ] \]
[In]
[Out]
Time = 1.95 (sec) , antiderivative size = 124, normalized size of antiderivative = 1.65 \[ \int \frac {(A+B x) \sqrt {a+b x^2}}{x^2} \, dx=- \frac {A \sqrt {a}}{x \sqrt {1 + \frac {b x^{2}}{a}}} + A \sqrt {b} \operatorname {asinh}{\left (\frac {\sqrt {b} x}{\sqrt {a}} \right )} - \frac {A b x}{\sqrt {a} \sqrt {1 + \frac {b x^{2}}{a}}} - B \sqrt {a} \operatorname {asinh}{\left (\frac {\sqrt {a}}{\sqrt {b} x} \right )} + \frac {B a}{\sqrt {b} x \sqrt {\frac {a}{b x^{2}} + 1}} + \frac {B \sqrt {b} x}{\sqrt {\frac {a}{b x^{2}} + 1}} \]
[In]
[Out]
none
Time = 0.21 (sec) , antiderivative size = 59, normalized size of antiderivative = 0.79 \[ \int \frac {(A+B x) \sqrt {a+b x^2}}{x^2} \, dx=A \sqrt {b} \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right ) - B \sqrt {a} \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | x \right |}}\right ) + \sqrt {b x^{2} + a} B - \frac {\sqrt {b x^{2} + a} A}{x} \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.36 \[ \int \frac {(A+B x) \sqrt {a+b x^2}}{x^2} \, dx=\frac {2 \, B a \arctan \left (-\frac {\sqrt {b} x - \sqrt {b x^{2} + a}}{\sqrt {-a}}\right )}{\sqrt {-a}} - A \sqrt {b} \log \left ({\left | -\sqrt {b} x + \sqrt {b x^{2} + a} \right |}\right ) + \sqrt {b x^{2} + a} B + \frac {2 \, A a \sqrt {b}}{{\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} - a} \]
[In]
[Out]
Time = 6.49 (sec) , antiderivative size = 89, normalized size of antiderivative = 1.19 \[ \int \frac {(A+B x) \sqrt {a+b x^2}}{x^2} \, dx=B\,\sqrt {b\,x^2+a}-\frac {A\,\sqrt {b\,x^2+a}}{x}-B\,\sqrt {a}\,\mathrm {atanh}\left (\frac {\sqrt {b\,x^2+a}}{\sqrt {a}}\right )-\frac {A\,\sqrt {b}\,\mathrm {asin}\left (\frac {\sqrt {b}\,x\,1{}\mathrm {i}}{\sqrt {a}}\right )\,\sqrt {b\,x^2+a}\,1{}\mathrm {i}}{\sqrt {a}\,\sqrt {\frac {b\,x^2}{a}+1}} \]
[In]
[Out]